Tags: Waterproof, Thermal, Probe, Temperature, Sensor, DS18B20, for, Arduino, AVR, PIC

Temperature Sensor Waterproof Thermal Probe DS18B20

  • 15.00 AED
    • Ex Tax:15.00 AED
    • Product Code: DS18B20
    • Availability: In Stock
    This sealed digital temperature probe lets you precisely measure temperatures in wet environments with a simple 1-Wire interface. The DS18B20 provides 9 to 12-bit (configurable) temperature readings over a 1-Wire interface, so that only one wire (and ground) needs to be connected from a central micr..

    This sealed digital temperature probe lets you precisely measure temperatures in wet environments with a simple 1-Wire interface. The DS18B20 provides 9 to 12-bit (configurable) temperature readings over a 1-Wire interface, so that only one wire (and ground) needs to be connected from a central microprocessor.



    Length of Cable : 1m
    Size of Stainless steel sheath: 6*30mm
    Power supply range: 3.0V to 5.5V
    Operating temperature range:-55°C to +125°C (-67°F to +257°F)
    Storage temperature range:-55°C to +125°C (-67°F to +257°F)
    Accuracy over the range of -10°C to +85°C: ±0.5°C.
    Output leads: Red (VCC), Blue (DATA), Black (GND)
    waterproof


    In this article we are showing how to use DS18B20 one wire water proof temperature sensor. With the help of DS18B20 one wire temperature sensor we can measure the temperature from -55℃ To 125℃ with accuracy of ±0.5 :




    Components Required :-

    1. 1 x Arduino uno board
    2. 1 x USB cable
    3. 1 x DS18B20 Temperature Sensor
    4. 3 x Jumper wire (Male to Male)

    Additional Library :-

    1. One Wire Library
    2. Dallas Temperature Sensor library

    Installation Instruction is available here

    Connection :-

     

    Sketch/Source Code :-

    #include <OneWire.h>
    #include <DallasTemperature.h>
    
    #define ONE_WIRE_BUS 5
    
    OneWire oneWire(ONE_WIRE_BUS);
    
    DallasTemperature sensors(&oneWire);
    
     float Celcius=0;
     float Fahrenheit=0;
    void setup(void)
    {
      
      Serial.begin(9600);
      sensors.begin();
    }
    
    void loop(void)
    { 
      sensors.requestTemperatures(); 
      Celcius=sensors.getTempCByIndex(0);
      Fahrenheit=sensors.toFahrenheit(Celcius);
      Serial.print(" C  ");
      Serial.print(Celcius);
      Serial.print(" F  ");
      Serial.println(Fahrenheit);
      delay(1000);
    }

    There are no reviews for this product.

    Write a review

    Please login or register to review