int sensorPin = A0; // select the input pin for the micro switch/gear int sensorPin = A1; int sensorPin = A2; int sensorPin = A3; int sensorPin = A4; int sensorPin = A5; int solPin = 3; // select the pin for the solenoid int solPin = 5; int solPin = 6; int solPin = 9; int solPin = 10; int solPin = 11; void setup() { pinMode(solPin, OUTPUT); // declare the solPin as an OUTPUT: } void loop() { sensorValue = analogRead(sensorPin); // read the value from the sensor: digitalWrite(solPin, HIGH); // turn the solPin on