New answers tagged relay
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(...
1
vote
XH-M131 Photoresistor Relay Module NC position
If you put an additional relay (Relay B) between the XH-M131 and the light and connect the light to the mains via the Normally Closed pole of Relay B, the light will be ON unless Relay B is activated ...
Top 50 recent answers are included
Related Tags
relay × 304arduino-uno × 89
esp8266 × 38
arduino-mega × 23
nodemcu × 22
power × 21
switch × 16
sensors × 15
motor × 14
transistor × 13
programming × 11
pins × 11
arduino-ide × 10
arduino-nano × 9
bluetooth × 8
timers × 8
home-automation × 8
led × 7
button × 7
voltage-level × 7
electronics × 7
wires × 7
esp32 × 6
temperature-sensor × 6
millis × 6