LDR multiplexing

Simply what my requirment is to get read many LDR readings using with less number of pins in arduino uno.Before make the circuit,I draw the schematic diagram in protues 8.I will attach the schematic diagram as PDF.

I tried to get analog values of each LDRs through a 74HC4067 multiplexer,but the problem is i couldn’t get what i need,it always give me the same value(1023) when i was changed the light intensive,please help me guys.

At the end of this project I really want to know which LDR out of 16 LDRs are in low light.I used this multiplexer and 4LDRs only for the test.If you know a better way to do this,other than my thinking please kindly tell me.

Thankyou…!

74HC4067 schematic diagram.PDF (37.2 KB)

CODE.pdf (61.2 KB)

This is how you post code on this forum. Please read the forum guide before your next post.

#define muxln 0
#define muxPin0 2
#define muxPin1 3
#define muxPin2 4
#define muxPin3 5
void setup() {
 Serial.begin(9600);
 pinMode(muxPin0, OUTPUT);
 pinMode(muxPin1, OUTPUT);
 pinMode(muxPin2, OUTPUT);
 pinMode(muxPin3, OUTPUT);
}
void loop() {
 Serial.println();
 Serial.print("Values from 4067");
 Serial.print("***************************");
 for(int i = 0;i <16;i++){
 int sigValue = readMux(i);
 Serial.print(i);
 Serial.print("\t");
 Serial.print(sigValue);
 float voltage = ((sigValue + 0.5)/1024.0*4.85);
 Serial.print("\t");
 Serial.print(voltage);
 Serial.println();
 delay(1000);
 }
 Serial.print("**********************");
 delay(2000);
}
int readMux(int channel)
{
 digitalWrite(muxPin0,bitRead(channel,0));
 digitalWrite(muxPin1,bitRead(channel,1));
 digitalWrite(muxPin2,bitRead(channel,2));
 digitalWrite(muxPin3,bitRead(channel,3)); 
 int muxValue = analogRead(muxln);
 return muxValue;
 }

Code looks ok at first read.

Before make the circuit,I draw the schematic diagram in protues 8.I will attach the schematic diagram as PDF.

While the schematic looks fine the component values don’t.
Each type of LDR has a dark current or maximum resistance value, the pull down resistor should normally be half that value. It looks like you need some real values, any way, why are the meters showing 88.8 V and AC at that?