Introduction: Arduino Nano - SI7050 Temperature Sensor Tutorial

SI7050 is a digital temperature sensor which works on I2C communication protocol and offers high accuracy over the entire operating voltage and temperature range. This high accuracy of the sensor is attributed by the novel signal processing and analog design. These sensors are embedded with an on-chip memory which stores the callibration data which facilitates its usage over a wide range. Here is its demonstration with Arduino Nano.

Step 1: What You Need..!!

Picture of What You Need..!!

1. Arduino Nano

2. SI7050


3. I²C Cable


4. I²C Shield for Arduino Nano


Step 2: Connection:

Picture of Connection:

Take an I2C shield for Arduino Nano and gently push it over the pins of Nano.

Then connect the one end of I2C cable to SI7050 sensor and the other end to the I2C shield.

Connections are shown in the picture above.

Step 3: Code:

Picture of Code:

The arduino code for SI7050 can be downloaded from our github repository-ControlEverythingCommunity

Here is the link for the same :

The datasheet of SI7050 can be found here:

We include library Wire.h to facilitate the I2c communication of the sensor with the Arduino board.

You can also copy the code from here, it is given as follows:

// Distributed with a free-will license.

// Use it any way you want, profit or free, provided it fits in the licenses of its associated works.

// SI7050

// This code is designed to work with the SI7050_I2CS I2C Mini Module available from



// SI7050 I2C address is 0x40(64)

#define Addr 0x40

void setup()


// Initialise I2C communication as MASTER


// Initialise serial communication, set baud rate = 9600


// Start I2C transmission


// Stop I2C transmission




void loop()


unsigned int data[2];

// Start I2C transmission


// Send temperature measurement command, NO HOLD MASTER


// Stop I2C transmission



// Request 2 bytes of data

Wire.requestFrom(Addr, 2);

// Read 2 bytes of data

// temp msb, temp lsb

if(Wire.available() == 2)


data[0] =;

data[1] =;


// Convert the data

float temp = ((data[0] * 256.0) + data[1]);

float ctemp = ((175.72 * temp) / 65536.0) - 46.85;

float ftemp = ctemp * 1.8 + 32;

// Output data to serial monitor

Serial.print("Temperature in Celsius : ");


Serial.println(" C");

Serial.print("Temperature in Fahrenheit : ");


Serial.println(" F");



Step 4: Applications:

SI7050 can be incorporated in various systems including computer equipments, portable consumer devices and medical equipments. This sensor can be employed in cold storage chains, asset tracking as well as various industrial control systems. It plays a pivotal role in battery protection too.


About This Instructable



More by Dcube Tech Ventures:Home Automation with Raspberry Pi using Relay boardMotion Control with Raspberry Pi and LIS3DHTR, 3-Axis Accelerometer, using Python3-Axis Accelerometer, ADXL345 with Raspberry Pi using Python
Add instructable to: