Rain sensor + stepper motor + arduino (Need help) Answered
I am working on a SMART WIndow.
This window is supposed to close automatically when it rains.
Suppose the sliding window is being closed using a motor.
How can i write a program to serve the purpose:
When the rain sensor sense rain > activate the motor to close the window > after window fully closed > deactivate the motor.
When the rain sensor dries (rain stop) > activate the motor to open the window > after window fully open > deactivate the motor.