water sansor 1

Dependencies:   mbed

watersensor.h

Committer:
paris8022
Date:
2017-10-27
Revision:
0:2b430503298a

File content as of revision 0:2b430503298a:

const int VAL_PROBE = 0;
const int ledPin = 13;

void setup(){
  pinMode(ledPin,OUTPUT); 
  pinMode(sensor_in,INPUT); 
}

void loop(){
   if(digitalRead(sensor_in)== LOW){
        digitalWrite(ledPin,HIGH); 
     }else{
        digitalWrite(ledPin,LOW); 
     }
}