Skip to main content


Digital Temperature Sensor Arduino Compatible

Arduino Compatible ARD2 Digital Temperature Sensor


1 $4.95


This module can detect ambient temperature and tell whether it is higher or lower than a user-defined value. This value can be set by adjusting the board's potentiometer. This module also features an analog output so that the current ambient temperature can be ascertained.

Test Code

int Led = 13; // define LED Interface
int buttonpin = 3; // define the digital temperature sensor interface
int val; // define numeric variables val

void setup () {
pinMode(Led, OUTPUT); // define LED as output interface
pinMode(buttonpin, INPUT); // define digital temperature sensor output interface

void loop () {
val = digitalRead(buttonpin); // digital interface will be assigned a value of 3 to read val

// when the digital temperature sensor detects a signal, LED flashes
if (val == HIGH) {
digitalWrite(Led, HIGH);
else {
digitalWrite(Led, LOW);


  • Detect ambient temperature with digital output
  • Applications include gardening & home alarm systems







You Might Also Like

All prices are in Australian Dollars and include GST. GST will be removed from your order if you are ordering from outside Australia.
Products may differ from pictured.
All trademarks and trade names are the properties of their respective owners. Wiltronics disclaims any proprietary interest in trademarks and trade names other than its own.

Digital Temperature Sensor Arduino Compatible



We use cookies to ensure you have the best experience on our site. If you continue to use this site you consent to the use of these cookies. OK

Find out more in our Privacy Policy