// Reading MaxSonar Ultrasonic Rangefinder Sensor // Assumptions: Sensor voltage numbers back range // from 0 (nothing in front) to ~ 300 (~ 3 inches) int sensorPin = 4; void setup() { Serial.begin(9600); } void loop() { Serial.println(analogRead(sensorPin)); }