If you connect your LDR to +5 you need a pull-down resistor on your input pin. You have a resistor but it is in the wrong place. You have it between the multiplexer output and the input pin. You want the multiplexer output connected DIRECTLY to the input pin AND you want a resistor between the input pin an Ground.