Repaired sensorPin assignment to reading