ดูรายละเลียดการใช้งานและตัวอย่าง arduino code ได้ที่ Click
Introduction
DFRobot TS01 IR temperature sensor is a non-contact thermal sensor, which can be used to measure the infrared intensity of the object so as to calculate its surface temperature without touching. The built-in temperature compensation for the sensor greatly ensures the accuracy of the temperature measurement. The all metal package of the sensor makes it able to protect against impact, water, dust and so on. Given stable output data, this temperature sensor can exhibit a much better measurement performance than most other similar products on the market.
The product has been calibrated in wide temperature range before leaving the factory. With an operating temperature of -40℃-85℃, the sensor can be used to measure the temperature of -70℃~380℃ while providing a maximum accuracy of 0.5°C. TS01 outputs 4~20mA standard industrial current signal, a current to voltage converter is highly recommended when you want to use MCU to read the value.
An optical filter (long-wave pass) that cuts off the visible and near infra-red radiant flux is integrated in the package to provide ambient and sunlight immunity. Its FOV is small as 5°, which means for a heat source of 10cm outer diameter, the maximum measuring distance of the sensor can reach up to 116cm.
Features
- Non-contact Temperature Measurement
- Operating Temperature Range of Industrial Grade
- Current Output
- Metal Packaging
Specification
- Supply Voltage: 7.5~36V DC
- Operating Current: 20mA
- Signal Output: 4~20mA
- Operating Temperature: -40℃~85℃
- Measuring Temperature: -70℃~380℃
- Accuracy: ±0.5℃~±4℃
- FOV: 5°
- Defense Grade: IP65
- Probe Diameter: 15.4 mm/0.61”
- Probe Length: 78 mm/3.07”
- Cable Length: 1.5m/59.06”
- Interface Type: stripped tin-plating wire

Document
Shopping List
- TS01 Non-Contact Analog Infrared Temperature Sensor (-70℃~380℃, IP65, 4-20mA) x1
Tutorial
Preparation
- Hardware
- Arduino UNO Main Board(or analogous main board) ×1
- TS01 Infrared Temperature Sensor 4-20mA ×1
- Current-to-Voltage Module ×1
- Object Detected ×1
- Software
- Arduino IDE(1.0× or 1.8×), click to download Arduino IDE.
Connection Diagram
- TS01 outputs 4~20mA standard industrial current signal, a current to voltage converter is highly recommended when you want to use MCU to read the value.
- The power supply of TS01 is 7.5-36V.

Sample Code
void setup() {
Serial.begin(115200);
}
void loop() {
unsigned int ADC_Value = analogRead(A3);
float i=(double)ADC_Value/(204.8*0.12);
float j=(i-4)/16*340-70;
Serial.print(i);
Serial.print("mA, ");//printed current value
Serial.print(j);
Serial.println("\u2103");//printed temperature value
delay(100);
}
Result

Gradient Diagram of Measuring Accuracy
- The field of view(FOV) of the sensor is 5°. The target dimension and the optical properties of the IR temperature sensor decided the maximum distance between the target and the probe. The field of view of the sensor is shown below.

- The gradient diagram of measuring accuracy of the sensor is shown below (To is the measured temperature; Ta is the temperature of the environment the sensor locates in). Please note that the temperature error only applies to a certain isothermal condition, and it’s only valid when the detected object is fully filling in the FOV of the sensor.
