Before explaning the project I am going to tell you one important thing ; that is please make a habit of reading datasheet of perticular ic you are using in your project . In this project an important integrated ic used is cd4060b you can download from this link . And another important component is light dependent resistor . you can download the proteus file from this link
I hope you read data sheet of 4026 ic . The main function of this ic is to count from 0 to 9 and display the result on the a,b,c,d,e,f,g pin of ic and from these pin we can directly connect to seven segment display . This IC is menufactured by texas instruments and The ic starts counting on the basic of clock pulse . Each pulse of clock enters the ic and the counter starts after detecting high edge of the clock pulse . But counter does not means you can directly fed this circuit to seven . The counter then fed into the decoder circuit which is inside the 4026 ic and the decoder output can be used to represent the seven segment . As I said the this ic works on the basis of clock ,the question is where is clock ? Well there is each time visitor enters the room the resistance of LDR goes very high and this blocks the current flow through the transistor . After visitor leave by this circuit then LDR resistance again goes to low and current starts flowing through the transistor . Which means each time visitor enter by this circuit they acts as a clock and this clock can be used to trigger the 4026 IC . That’s all concept with this project .This counter circuit will count up to 99 visitor if you want to count more then please add another 4026 ic and use in similar way .
I hope you understood , if you have any further question please leave comment below i will try to explain .
Please ! share this project if you found this useful .