AnalogReadSerial - */ void setup() { Serial.begin(9600); }...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* AnalogReadSerial Reads an analog input on pin 0, prints the result to the serial monitor This example code is in the public domain.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: */ void setup() { Serial.begin(9600); } void loop() { int sensorValue = analogRead(A0); Serial.println(sensorValue, DEC); }...
View Full Document

Ask a homework question - tutors are online