Moisture Sensor using Arduino Uno
code
/*Create by indian Ai science*/
int sensorpin = A0;
int sensorvalue = 0;
void setup()
{
pinMode(sensorpin,INPUT);
Serial.begin(9600);
}
void loop()
{
sensorvalue = analogRead(sensorpin);
Serial.println("Moisture value");
Serial.println(sensorvalue);
}
Comments
Post a Comment