Hello, everyone.
Welcome back to the course of Raspberry Pi.
Pico.
So in this video, I'm going to show you how you can make weather station using Raspberry Pi, pico
and 11 temperature and humidity sensor.
So without wasting any time, let's get started.
So to make the project, we need few components like LCD display, few jumper wires and temperature,
humidity sensor, Raspberry pi, pico and a breadboard.
So now let us see the connections.
So according to a circuit diagram, I already built the connections.
So now let us move to the coding part.
Now let us come to the coding section for this project.
We require four files which is.py files api.py pico 2.py and main.py.
So we have to to work in the main.py files.
First of all i declare i to c equals to i to c and d equals to i to lxd.
These are basically the i pins and the LCD display.
And then the.
We have to declare that T equals to sensor dot temperature H equals to sensor dot humidity and sensor.
We have to declare as relevant the pin, which we are using as a temperature humidity sensor.
Then we have to use all the.
All these things the time dot sleep one dot clear already explained this syntax in my previous video.
You can go through that video or I will give the link of the video in the description.
You can watch from there.
So these are the this is my code.
Let us run the code and upload to the PICO board.
So after uploading the code to my Raspberry Pi pico, you can see that my temperature currently showing
is 33.2°C and humidity is 54.0 percentage.
So in this way you can make a weather station using Raspberry Pi pico and living temperature sensor.
So now check whether my temperature is showing.
Showing is exactly matching to my actual value or not.
So.
So let us check.
He.
Oh, goodness.
Temperature.
Okay.
So.
So currently it is showing that the temperature 34°C and it is showing that 33.1°C.
It is almost it is a it is one point, one point, one degree difference of one point, one degree Celsius.
So there is not much difference between the measured value and actual value.
The measured value is my the temperature reading on my LCD display and my actual value is this 34 degree
Celsius.
So in this way you can make a weather station using Raspberry Pi.
Pico.