if (voltage >= 232.813317)
Voltage is an integer so why are you using a floating point number?
Why can't you post things properly, that schematic never loaded after five minuets.
Finally got the schematic. Why no resistors on the LEDs?
Further Edit
You are reading analogue 2 and wiring up to analogue 1