Simple circuit of digital temperature module and integrated LED connecting to digital 13 interface to make temperature indicator light.Use number 13 interface to connect the integrated LED, connect digital temperature sensor to number 3 interface. When the digital temperature sensor senses key signal, the LED is on, otherwise, it’s out.Sample code:Int Led = 13;/ / define LED interfaceInt buttonpin = 3;/ / define the digital temperature sensor interfaceInt val./ / define digital variable valVoid setup (){PinMode (Led, the OUTPUT);/ / define the LED for the output interfacePinMode (buttonpin, INPUT);/ / define the digital temperature sensor for the output interface}Void loop (){Val = digitalRead (buttonpin);/ / to assign the value of digital interface 3 read valIf (val = = HIGH) / / when digital temperature sensor detection signal, LED flashing{DigitalWrite (Led, HIGH);}The else{DigitalWrite (Led, LOW);
1. using the NTC thermistor sensor , good sensitivity
Faizan Malik (verified owner) –
High quality and reliable. Thank you! (From Faisalabad)
Rizwan Tariq (verified owner) –
Everything is perfect. Five stars! (From Karachi)
Rizwan Tariq (verified owner) –
Works perfectly. Great experience! (From Sialkot)