I purchased a new Nano 33 Sense Rev2 and used it for the first time for a class project. In this project, we were required to use our Arduino to take temperature and humidity readings using the HS3003 sensor. To do this, we were required to connect our Arduino to our machines using a micro-USB with data transfer and write code that allowed us to take readings. After taking readings of the room, we were instructed to get our finger damp with water (not dripping) and touch it to the sensor to see the changes. I did this by holding an ice cube or dipping my finger in water, flicking the excess water off, and touching the board. I was able to successfully do this twice, and on my third attempt, the sensors were no longer initialized or functioning. It has been a few weeks and my new board still does not work. I correctly installed all board dependencies to the Arduino IDE and was able to successfully take readings until I touched my finger to the HS3003 sensor. None of my other classmates experienced any issues when touching their wet finger to the board. I will paste my code below.
#include <Arduino_HS300x.h>
void setup() {
Serial.begin(9600);
while (!Serial);
if (!HS300x.begin())
{
Serial.println("Humidity/temperature sensor initialization failed.");
while(1);
}
}
void loop() {
float temp = HS300x.readTemperature();
float humidity = HS300x.readHumidity();
Serial.println(String("Temperature = ") + temp + " degrees Celsius");
Serial.println(String("Humidity = ") + humidity+ " %");
Serial.println();
delay(3000);
}
