// sensorVal.txt on E4D Website int sensorVal; // declaration only int sensorPin = 3; // declaration and assignment float voltage; // Voltage of the input signal float input2volts = 5.0/1023.0; void setup ( ) { Serial.begin (9600) ; // initialize serial port } void loop ( ) { sensorVal = analogRead(sensorPin); // get reading voltage = float(sensorVal)*input2volts ; Serial.print ("sensorVal = "); Serial.print (sensorVal); Serial.print (", "); Serial.print ("actual voltage = "); Serial.print (voltage); Serial.println (" volts"); delay(100); }