Pin names
Positive voltage
1-Wire data line (input/output)
Ground
Attributes
Initial temperature value (celsius)
12-character hex device ID for the 1-Wire address
1-Wire family code
Controlling the temperature
You can change the temperature value while the simulation is running. Click on the DS18B20 sensor and a small popup window will open. Use the temperature slider to change the value. The temperature range is -55°C to 125°C.Multiple sensors
You can connect multiple DS18B20 sensors to the same data pin. Each sensor must have a uniquedeviceID attribute. The 1-Wire protocol allows addressing individual sensors
by their unique ID.
Example with three sensors:
Arduino code example
Automation controls
The temperature sensor can be controlled using Automation Scenarios. It exposes the following controls:Set the temperature value in Celsius (between -55 and 125)
Simulator examples
- DS18B20 single sensor - Basic temperature reading with DallasTemperature library
- DS18B20 multiple sensors - Multiple sensors on a single bus