Display Temperature And Humidity Data With HTS221 - Hutscape
Maybe your like
Hutscape TutorialsChecklistsToolsCalculators Code Videos Donate Display temperature and humidity data with HTS221 Updated on 3 September 2021 dev board Arduino Nano 33 BLE Sense firmware Arduino chip HTS221 sensor temperature sensor humidity This tutorial is more than 1 year old. If the steps below do not work, then please check the latest versions and the documentations of the individual tools used. #include <Arduino_HTS221.h> void setup() { Serial.begin(9600); while (!Serial) {} if (!HTS.begin()) { Serial.println("Failed to initialize humidity temperature sensor!"); while (1) {} } } void loop() { float temperature = HTS.readTemperature(); float humidity = HTS.readHumidity(); Serial.print("Temperature = "); Serial.print(temperature); Serial.println("°C"); Serial.print("Humidity = "); Serial.print(humidity); Serial.println("%"); Serial.println(); delay(1000); } BOARD?=arduino:mbed:nano33ble PORT?=/dev/cu.usbmodem14* BUILD=build .PHONY: default lint all flash clean default: lint all flash clean lint: cpplint --extensions=ino --filter=-legal/copyright *.ino all: arduino-cli compile --fqbn $(BOARD) --output-dir $(BUILD) ./ flash: arduino-cli upload --fqbn $(BOARD) --port $(PORT) --input-dir $(BUILD) clean: rm -r build
Before starting
Ensure the following dependancies are downloaded and available:- Arduino MBed OS Nano Boards
- Temperature and Humidity sensor HTS221
- Blinky with Arduino Nano 33 BLE sense
- Arduino Nano 33 BLE Sense
Code
Download code nano33-ble-sense-temperature-humidity.inoMakefile
Serial console
Serial output from the firmware.
Description
Display temperature and humidity values with sensor HTS221 on Arduino Nano 33 BLE Sense board.
Install the dependancy:
arduino-cli lib install Arduino_HTS221References
- Arduino Nano 33 BLE Sense
- Getting started with the Arduino NANO 33 BLE Sense
- Read temperature and humidity with HTS221
Tag » Arduino Nano 33 Ble Sense Temperature Example
-
Reading Temperature & Humidity On Nano 33 BLE Sense
-
Getting Started With The Arduino Nano 33 BLE Sense
-
Use The Built-in Sensors On Nano 33 BLE Sense - Arduino Help Center
-
Nano 33 BLE Sense Cheat Sheet - Arduino Documentation
-
Arduino Nano 33 BLE Sense Projects
-
Arduino Nano 33 BLE Sense Overview
-
Tutorial 01: Accessing Sensor Values | Arduino Nano 33 BLE Sense ...
-
Get Started With Arduino Nano BLE 33 Sense - OKdo
-
Arduino Nano 33 BLE Sense - Serial Temp & Humidity - YouTube
-
The Hacky Super Loop Arduino Nano 33 BLE Sense Example You ...
-
Using The Nano 33 BLE Sense With The Arduino Science Journal
-
Manuel D'utilisation ARDUINO ABX00031 Nano 33 BLE Sense
-
Communication Entre ARDUINO NANO 33 BLE SENSE?