5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10

EASY plug Ultimate Starter Learning Kit Project 20: What’s the temperature

Posted by Fiona Su on

In this project, you will learn how to use the temperature sensor with your EASY Plug control board, and display the analog temperature value on the serial monitor.
Component Required

  • EASY plug control board*1
  • EASY plug DS18B20 Sensor *1
  • EASY plug OLED Module*1
  • RJ11 cable *2
  • USB cable*1

Component Introduction

The DS18B20 temperature sensor is exactly what it sounds like - a sensor used to measure ambient temperature.
The usable temperature ranges from -55°C to +125°C. It also supports multi-point mesh networking.
While there are many types of temperature sensors available in the market, the DS18B20 temperature sensor is the best choice in applications which require high accuracy and high reliability.
For electronic enthusiasts and hobbyists, the DS18B20 is a good start for learning and developing temperature-dependent prototypes.

  • Supply Voltage: 3.3V to 5V
  • Temperature range: -55°C to +125°C
  • Interface: Digital

Connect It Up
Connect the EASY Plug DS18B20 temperature sensor to control board using an RJ11 cable.


Upload the Code


What You Should See


Done uploading the code, open the serial monitor, on the window will print out the Celsius and Fahrenheit value.


OLED Display
Hookup Guide


Test Code


What You Should See
Upload success, you should be able to see the Celsius and Fahrenheit value are printed out on the OLED screen.



  • OLED Not Lighting Up?

If upload the code successfully, but LED still not lights up. Make sure your board and OLED module are connected correctly.

  • Upload Failed ?

This happens sometimes, the most likely case is a confused Board and serial port, you should firstly select your proper board and port.
Or check whether add the library or not.




All Tutorials

Buy >> EASY plug Ultimate Starter Learning Kit 



Leave a comment

Please note, comments must be approved before they are published