Arduino Automat-WPS Office
Arduino Automat-WPS Office
//Constants
const int airPump = 9; //Air pump motor with npn transistor at pin 9 of
Arduino
const int hygrometer = A0; //Hygrometer sensor analog pin output at pin A0 of
Arduino
//Variables
int value;
void setup()
{
pinMode(airPump,OUTPUT);
}
void loop()
{
// When the plant is watered well the sensor will read a value 380~400, I
will keep the 400
// value but if you want you can change it below.