Creating triggers based on sensor reading

Is it possible to create triggers based on sensor readings?
If temp is bellow 20c then turn on heater (relay) and or send notification…?