This project utilizes the Arduino Nano 33 BLE Sense board and the embedded HTS221 sensor to measure and display real-time temperature and humidity values. The primary goal is to familiarize users with reading raw sensor data, utilizing the HTS221 library, and printing sensor values in the Serial Monitor.
- Learn how to output raw sensor data from the Arduino Nano 33 BLE Sense.
- Utilize the HTS221 library for temperature and humidity sensor functionality.
- Print temperature and humidity values in the Serial Monitor within a specified range.
- Create a customized temperature and humidity monitoring system.
- Arduino Nano 33 BLE Sense board
- Micro USB cable for connecting the Arduino board to a desktop machine.
- Arduino IDE for programming the board.
Temperature and humidity sensors, such as the HTS221, play a crucial role in converting physical temperature and atmospheric moisture levels into digital data. The HTS221 sensor, with its compact design, communicates via the I2C protocol and has the following specifications:
- Humidity accuracy: ± 3.5% rH, 20 to +80% rH
- Humidity range: 0 to 100%
- Temperature accuracy: ± 0.5 °C, 15 to +40 °C
- Temperature range: -40 to 120°C
Applications of such sensors span across various domains, including air conditioning, wearable devices, smart home automation, industrial automation, and more.
- Open the Arduino IDE, navigate to the Libraries tab, and find the HTS221 library. Open the ReadSensors example and rename it as Temp_Humidity.
- Connect the Arduino Nano 33 BLE Sense to the computer and ensure the Web Editor recognizes it.
After verifying and uploading the sketch to the board, open the Serial Monitor to view the real-time temperature and humidity values. The values will be displayed as shown below:
Feel free to reach out for any additional information or assistance!