New answers tagged sensors
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 ...
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 &...
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(...
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.
...
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 ...
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 ...
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 ...
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 ...
Top 50 recent answers are included
Related Tags
sensors × 1244arduino-uno × 500
programming × 90
arduino-mega × 79
arduino-nano × 67
serial × 62
i2c × 58
temperature-sensor × 56
esp8266 × 54
power × 50
arduino-ide × 40
analogread × 36
led × 35
c++ × 33
pins × 32
esp32 × 29
interrupt × 27
servo × 27
accelerometer × 25
ir × 24
current × 24
robotics × 23
motor × 22
library × 20
hardware × 20