State the most suitable data type for the variables soilpH and ventilationActive used in the algorithm below.
sensorReading ← USERINPUT
optimalRange ← USERINPUT
soilpH ← 6.5
ventilationActive ← False
statusReport ← "pH is within safe limits."
IF sensorReading < 5.5 THEN
soilpH ← 5.2
OUTPUT "Warning: Acidic soil!"
ELSE
IF sensorReading > 7.5 THEN
ventilationActive ← True
soilpH ← sensorReading
ELSE
OUTPUT statusReport
ENDIF
ENDIF
| Variable identifier | Data type |
|---|---|
| soilpH | |
| ventilationActive |