Raspberry Pi - Automation and Scheduling
You want to improve the watering system to water plants only if soil moisture is below 400 and only between 6 AM and 8 AM. Which Python code snippet correctly adds this time condition?
import datetime
now = datetime.datetime.now()
soil_moisture = 350
if soil_moisture < 400 and ???:
print("Watering plants")
else:
print("No watering")