in arduino/plant_reference.ino [85:103]
void getData()
{
digitalWrite(powerPin, HIGH); // turn water sensor and photocell on
// read temperature data
tempSensor.wakeup();
temperature = tempSensor.readTempF();
tempSensor.sleep();
soilMoisture = soilSensor.touchRead(0);
// read water level in tank
waterLevel = analogRead(waterSensorPin);
// read light data
light = analogRead(lightSensorPin);
digitalWrite(powerPin, LOW); // turn water sensor and photocell off
}