Voltage sensing switch Help..

analogRead returns a value between 0 and 1023. When analogRead returns 0 the pin is at 0 volts. When analogRead returns 1023 the pin is at VCC volts (usually very close to 5 volts). So, you will need to adjust the comparison...

if ( reading >= ((1 * 1023) / 5) ) {

    outPin, HIGH;

While that is valid C++ syntax it has no side-effects. I suspect you meant this...

digitalWrite( outPin, HIGH );