DESCRIPTION
The temperature and humidity sensor is a module based on the DHT11 digital temperature and humidity sensing element. Simple design, and sensitive to the ambient temperature and humidity changes, it can be used for temperature alarm, humidity testing, and other works.
FEATURES
The power supply needs: 5V
Interface type: Digital
Pin Definition: 1-Signal 2-VCC 3-GND
Fast response and High sensitivity
Simple drive circuit
Stable and long life
PACKAGE LIST
Module | Quantity |
---|---|
DHT11 Temperature And Humidity Sensor Module | 1 |
Analog Sensor Cable | 1 |
HARDWARE CONNECTION
Connect the sensor to the P1 port on OCTOPUS:BIT.
PROGRAMMING
STEP 1
Click Advanced in the code drawer of MakeCode to see more options.
STEP2
To program for the sensor, we need to add a package. Find Add Package in the bottom of code drawer and click it. This will pop up a dialogue box. Search “IOT” in the box and click to add that package.
CODE
You can see the whole program from the link here: link
Or you can download it from the page below.
LEARN
The temperature and humidity value is scrolling on micro:bit screen.