Hardware configuration
Now let's assemble the different components of this project. This is a schematic to help you out:
First, connect the power. Connect the Arduino Uno 5V to the red power rail on the breadboard, and the GND pin to the blue power rail. Also, place all the main components on the breadboard.
After that, for the DHT11 sensor, follow the instructions given by the schematic to connect the sensor to the Arduino board. Make sure you don't forget the 4.7k Ohm resistor between the VCC and signal pins.
We are now going to connect the photocell. Start by placing the photocell on the breadboard in series with the 10k Ohm resistor. After that, connect the other end of the photocell to the red power rail, and the other pin of the resistor to the blue power rail. Finally, connect the pin between the photocell and the resistor to Arduino Uno pin A0.
Finally, for the motion sensor, connect the VCC pin to the red power rail, the GND pin to the blue power rail, and finally the output pin of...