Sentry-button makes your selected unit go to a "sleepmode" where you don't need to select it every turn. Then, if an unit (friend or enemy) comes near your unit, it will "wake up" and you select it automatically on that turn.
Sentry (enemy only) -button is the same as the Sentry-button but your unit wakes up only when there is an enemy unit nearby.