adds pull down resistor for the ldr