New answers tagged

1 vote

DHT20 and Oled display not working together

The basic problem I don't have this sensor kit. But am able to observe what you're describing with substitutes and stand-ins. There seem to be two things you can do. The basic problem is that the ...
timemage's user avatar
  • 4,980
0 votes

Relay switch when CO value is met

Look at the structure of your if ... else statements (your "decision tree"). Imagine what happens when your CO sensor returns a value of 30 (for example). Your code first evaluates if (co &...
StarCat's user avatar
  • 1,577
0 votes

Relay switch when CO value is met

When co >= cepat_threshold it is also > med_threshold Reverse the tests, starting with the highest value: if (co >= cepat_threshold) { digitalWrite(relay1Pin, LOW); digitalWrite(...
SBF's user avatar
  • 173
0 votes

DHT20 and Oled display not working together

In your final sketch, you have Wire.begin(); in setup(). In the DHT.h file, it includes Wire.begin(); again. Try removing the Wire.begin(); in your third sketch to see if that fixes the issue. ...
VE7JRO's user avatar
  • 2,551
0 votes

Unable to find/connect I2C devices (SHT31 & SGP30)

Without a schematic I will take a SWAG" For I2C to work it needs a pull up resistor for SCL another for SDA. Both are open drain/collector outputs neither of which can drive a + (logic 1) on the ...
Gil's user avatar
  • 1,811
2 votes

Unable to find/connect I2C devices (SHT31 & SGP30)

I had a similar problem, but the fix turned out to be simple. All the tutorials for SHT3x sensors say to connect the VIN to the 3.3V GPIO. I checked using a test meter, the SHT3x was getting voltage ...
Hillclimb's user avatar
0 votes

Water level Detection using Ultrasonic Sensor and arduino

Sensors exist for exactly your use case. Here is an example; Maxbotix MB7589 Ultrasonic Sensor I have used several of these to measure river levels. they are virtually indestructible and have all the ...
Gwyn's user avatar
  • 151
0 votes

Esp32 fails to read MH-Z19C sensor

This is not a Winsen Mh-z19 sensor (or any clone following it's specs) so you won't be able to read data using a mhz19 library. Most probably it's a HC8 sensor and someone would have to rewrite ...
Peter's user avatar
  • 1

Top 50 recent answers are included