For
English
, please clickhere.
For
Chinese
, please clickhere.
The SENZ008 Temperature Sensor is a very small thermometer which can be easily hooked into the Arduino MCU through any digital input! It requires very little in the way of additional support, a couple of resistors and some hookup cables and you're set to go.
- Supply Voltage: 3.3V ~ 5 V
- Temperature range :-55 ~ +125℃ ( -67 ~ +257℉ )
- Error of ± 0.5℃ ( among -10℃ to +85℃ ), ±2℃ ( others )
- Resolution : ±0.5℃
- Size: 2.1cm x 1.0cm
Sensor Pin | Ardunio Pin | Function Description |
---|---|---|
VCC | 3.3V~5V | Power |
GND | GND | |
DO | Digital pin | Digital Output |
#include <DallasTemperature.h>
DallasTemperature tempSensor;
void setup(void) {
Serial.begin(9600);
tempSensor.begin(3); // Connect DS18B20 to Digital Pin 3
}
void loop(void) {
// Check if the sensor is working correctly
switch(tempSensor.isValid())
{
case 1:
Serial.println("Invalid CRC");
tempSensor.reset(); // Reset Sensor
return;
case 2:
Serial.println("Not a valid device");
tempSensor.reset(); // Reset Sensor
return;
}
// Read Temperature from DS18B20
Serial.print(tempSensor.getTemperature());
Serial.print("C");
Serial.println();
}