20. Octopus DS18B20 Digital Temperature Brick(EF04042)

20.1. Introduction

This brick uses the DS18B20 1-Wire digital temperature sensor from Maxim IC.


20.2. Characteristics

  • It can report degrees C with 9 to 12-bit precision, -55C to 125C (+/-0.5C). Each sensor has a unique 64-Bit Serial number etched into it that can allow for a huge number of sensors to be used on one data bus.

20.3. Specifications

Item Parameter
SKU EF04042
Power Dissipation ULP
Working Temperature -20-70℃
Working Voltage 3.3-5V

20.4. Outlook and Dimensions


20.5. Quick to Start

Materials used and connection diagram

Take sensor:bit for example


Add Package

  • Click “Advanced”in the choice of the MakeCode to find more choices.


Click “Extensions”, search “iot”in the dialog box and then download it.


Program as the picture shows



Links: https://makecode.microbit.org/_FEiCtaV235Xw

You can also download the links below:


  • The current temperature is showing on the micro:bit.

20.6. Relevant Cases

20.7. Technique Files