W1209 reading always 1

I'm having problems with a component, W1209. I'm trying to read if temperature is higher than I set, but it is always reading "1" (On) even if the component is on normal temperature. The code is one below, it is very simple, because I'm testing yet. If you dont know how the component works, I'll explain quickly: You have to set a temperature on which relay will not turn on, if temperature is higher or lower than the range it turns on. My english isnt too good, so I'm sorry if it's bad.

#define termostato 14

void setup() {
  Serial.begin(115200);
  pinMode(termostato, INPUT_PULLUP);
}

void loop() {

  if(!digitalRead(termostato)){
    
    Serial.println("Off");
  }
  else{
    
    Serial.println(digitalRead("On"));
  }
  
}

K0 is connect on 14
K1 on GND
GND on GND
12v on 5V

There are still things you can add, with no or very little language effort. Links to the hardware, for example.. a schematic which looks the same to all people who can read it, even when they speak completely different languages. Same with photographs and diagrams...


W1209

I dont know how to make a schematic of my project, I tried Tinkercad, but It doesnt have the component I need. For this reason, I only put the code and connections made. But I hope you understand my problem.

Hi, @amaralphc

Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

That is the thing. How is that possible? I only can know what you show or tell me.

@TomGeorge @anon57585045



K0 is connected on IO14
K1 on GND
GND on GND
12V on 5V

Really??????????? :scream:

@aarg

I saw a video on the internet where a guy connected like this.

(615) TERMOSTATO COM MONITOR SERIAL | Curso de Arduino #122 - YouTube

I really want to see the pen and paper drawing. I don't have time to sit through videos.

@anon57585045

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.