The pseudocode algorithm below is used to check whether a smart greenhouse needs watering based on a soil moisture reading.
1 moisture = read_sensor()
2 limit = 45
3 if moisture < limit then
4 turn_on_sprinkler()
5 else
6 turn_off_sprinkler()
7 endif
Identify the line number where selection begins.