/*
AnalogReadSerial
Reads an analog input on pin 0, prints the result to the serial monitor
This example code is in the public domain.
*/
void setup() {
Serial.begin(9600);
pinMode(4,INPUT);
}
void loop() {
int sensorValue = digitalRead(4);
Serial.println(sensorValue);
}