How to use switch case for light dependent resistor sensor's value