#include SoftwareSerial mySerial(0,1); int inputPin = 3; int sensorValue; void setup() { // initialize the serial communication: mySerial.begin(9600); } void loop() { sensorValue = analogRead(inputPin) / 4; // send the value of analog input 4: mySerial.write(sensorValue); // Send the value // wait a bit for the analog-to-digital converter // to stabilize after the last reading: delay(100); }