Question: Write an arduino program to control a plant watering system. The system has two sensor , a soil Moisture sensor on analog input AO and

Write an arduino program to control a plant watering system.
The system has two sensor, a soil Moisture sensor on analog input AO and a light sensor on analog input A1. It controls a pump on digital pin 8. At night the ground may be slightly dry but we do not want to water beacuse this could cause mold, so the pump should be off. We only want to water during daylight hours.
This table describes the behaviour of the system
Moisture light level pump
Wet Dark Off
Dry Dark Off
Dry Light On
Wet Light Off
.
The moisture sensor will read less than 2.5V when the soil is dry, and more than 2.5V when the soil is wet.
The light sensor will read less than 2.5V at night, and more than 2.5V during the day
Write the C code to implement this behaviour
 Write an arduino program to control a plant watering system. The

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!