Home » SHT30 Sensor and Arduino Uno

SHT30 Sensor and Arduino Uno

by arduinoguy71

In this article, we connect an SHT30 Sensor to an Arduino Uno

Parts Required

You can connect to the sensor using dupont style jumper wire.

This should work with other Arduino boards – I have tried a Mega and Nano for example

Name   Link
Arduino Uno
SHT30
Connecting cables

 

Schematic/Connection

I used 3.3v from the Arduino Uno – 5v should be ok if the module has an onboard regulator. You will need to check.

Code Example

This example uses the library from the following location – https://github.com/Risele/SHT3x

Download the zip file from GitHub and import using the Arduino IDE

#include <SHT3x.h>

SHT3x Sensor;

void setup() 
{
  
  Serial.begin(19200);
  Sensor.Begin();
}

void loop() 
{

  Sensor.UpdateData();
  Serial.print("Temperature: ");
  Serial.print(Sensor.GetTemperature());
  Serial.write("\xC2\xB0"); //The Degree symbol
  Serial.println("C");
  Serial.print("Humidity: ");
  Serial.print(Sensor.GetRelHumidity());
  Serial.println("%");

  delay(500);
}

 

Serial Monitor Output

Temperature: 25.65°C
Humidity: 56.01%
Temperature: 26.30°C
Humidity: 56.60%
Temperature: 26.86°C

 

Links

https://sensirion.com/products/catalog/SHT30-DIS-B

https://github.com/Risele/SHT3x

 

 

You may also like

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.