IoT Arduino Wireless Temperature Humidity sensor

IoT Arduino Wireless Temperature Humidity Sensor

Temperature Humidity sensors are one of the most common and widely used sensors with Arduino and other IoT platforms. There are so many use cases where a temperature humidity sensors can be used to detect potential problem like frozen pipes, broken freezers, malfunctioning air conditioning, water/humidity detection in crawl spaces and much more. In this IoT Arduino wireless temperature Humidity sensor project we will interface a long range wireless temperature humidity sensor with Arduino. These readings can be used to set an alarm or to send an alert.

There are so many sensors which can be connected to Arduino but there are not many which can connect with Arduino over a wireless connection. The devices which could have a few short comings like:

  1. Short Wireless Communication Range
  2. Temperature Humidity Readings are not Accurate or Consistent
  3. High Power Consumption with a Short Battery Life
  4. Packet/ Data Loss
  5. RF Collisions (so you can’t have too many in one area)

In this Article we will use a Long range wireless temperature humidity sensor with Arduino Due. We will use Xbee S3B as communication module. Here is a list of the hardware we will be using to build this Arduino wireless temperature Humidity sensor

  1. Wireless Temperature Humidity Sensor
  2. Arduino Due Wireless and I2C Shield
  3. Arduino Due
  4. Long range Wireless S3B Module

iot based temperature monitoring system using arduino

What makes this Long range wireless temperature humidity sensor so special?

  1. Ultra Long Wireless Range, 2 Mile with On-Board Antenna and 28-Miles when using a High Gain Antenna
  2. High Accuracy Honeywell Temperature Humidity Sensor
  3. Ultra Low Power Consumption, Lives off 2 AA Batteries for Years
  4. M2M Communications Protocol with Acknowledgements
  5. Every device has a unique ID and Unique Serial Number with No RF Collisions
  6. Hundreds of Devices can be Connected with one Arduino
  7. 128-bit AES Encryption for Secure Communications

How to Interface IoT Arduino Wireless Temperature Humidity Sensor

The working principle of the IoT Arduino wireless temperature Humidity sensor is pretty straight-forward, the wireless sensor will send a data packet after a user defined interval. The data packet contains a sensor node ID, sensor type, device battery voltage, temperature readings and humidity readings. On the Arduino side we will write a short script which will decode this incoming data and will display the battery voltage, temperature values and humidity values. In this setup we will have one sensor but this same script can be used to read hundreds sensors.

To know more about the IoT Wireless temperature Humidity sensor checkout this article.

Wiring Diagram?  We specialize in Plug and Play!

This is a wireless solution which is designed to work out of the box, so there is no wiring.

Arduino Code to Read IoT wireless temperature Humidity sensor : The code is real simple: all you will need to do is read the incoming data on the serial port and convert it into temperature humidity values. The code can be found on our github page as well:

///this code is written and tested for wireless temperature humidity sensor with arduino due
///sensor data structure can be found here 
/// sesnro can be found here

  int8_t data[29];
  int ledpin=13;
  int chk=1;
  int k = 10;
  int i;
void setup()
  Serial.println(" IoT Arduino wireless temperature Humidity sensor");

void loop()
  if (Serial1.available())
    data[0] =;
    while (!Serial1.available());
    for ( i = 1; i< 29; i++)
      data[i] =;
    if(data[15]==0x7F)  /////// to check if the recive data is correct
  if(data[22]==1)  //////// make sure the sensor type is correct
  float humidity = ((((data[24]) * 256) + data[25]) /100.0);
  float cTemp = ((data[26] * 256) + (data[27])) /100.0;
  float fTemp = cTemp * 1.8 + 32;
  float battery = ((data[18] * 256) + data[19]);
  float voltage = 0.00322 * battery;
  Serial.print("Sensor Number  ");
  Serial.print("Sensor Type  ");
  Serial.print("Firmware Version  ");
  Serial.print("Relative Humidity :");
  Serial.println(" %RH");
  Serial.print("Temperature in Celsius :");
  Serial.println(" C");
  Serial.print("Temperature in Fahrenheit :");
  Serial.println(" F");
  Serial.print("ADC value:");
  Serial.print("Battery Voltage:");
  if (voltage < 1)
    Serial.println("Time to Replace The Battery");
      for ( i = 0; i< 29; i++)
      Serial.print(" , ");

IoT Arduino wireless temperature Humidity sensor



  1. In-House Temperature Humidity Monitoring
  2. Storage Unit Weather Monitoring System
  3. Warehouse Temperature Humidity Monitoring System
  4. Wireless Temperature Humidity Sensor for Crawl Spaces
  5. Temperature Humidity Sensor for Device Control Application
  6. Wireless Temperature Humidity Monitoring For Raspberry Pi and Arduino