Welcome to Temperature Humidity Module repository
Detect temperature and humidity
Detect temperature and humidity
1. Purpose
In this course, we mainly learn to use Arduino, vibration motor module and limit switch module to realize limit switch control vibration motor.
2. Preparation
Wiring diagram as shown below.


3. About code
Please check .ino file.
4. Compiling and downloading code
4.1 We need to open the .ino file by Arduino IDE software. Then click“√”under the menu bar to compile the code, and wait for the word "Done compiling " in the lower left corner, as shown in the figure below.

4.2 In the menu bar of Arduino IDE, we need to select 【Tools】---【Port】--- selecting the port that the serial number displayed by the device manager just now, as shown in the figure below.


4.3 After the selection is completed, you need to click “→”under the menu bar to upload the code to the UNO board. When the word “Done uploading” appears in the lower left corner, the code has been successfully uploaded to the UNO board, as shown in the figure below.

5. Phenomenon
After the program is downloaded successfully. The serial port prints Temp: temperature value, Humidity: humidity value every 1s.
Open the serial port debugging assistant and set the baud rate to 115200. Open the serial port and observe the interface as shown below.