Si7021_sketch compiling

Hello Coders!

I have problem to compile Si7021_readsensor.ino sketch (from GitHub). Compliler generates error on
line 16.
I have tried each libraries below.

Platform: Arduino IDE

Board: NodeMCU

Sketch: readsensor.ino

//#include <SparkFun_Si7021_Breakout_Library.h>

//#include <Adafruit_Si7021.h>

#include <Wire.h>
#include <SI7021.h>

SI7021 sensor;
int led1 = 12;
int led2 = 13;

void setup() {
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
sensor.begin(); Error on this line (16): “no matching function for call to 'SI7021::begin()”

void loop() {

// temperature is an integer in hundredths…

Please help me to resolve the problem!

Best Regards HGR1950

readsensor.ino (1.94 KB)

Provide the link to where you get the library. Most of the time, the sensor object needs the pins where the sensor is connected to, either via the constructor or the begin().

Good Morning arduino_new!

The link is here:

I have sensor connected to NodeMCU pins SCL -> D1/GPIO05 and SDA -> D2/GPIO04.

Pin info I have got here:


This is the example code:

See if it suits you.


It's working. No errors when compiled.

Thank You Very Much and Have a Nice Day!

Best Regards HGR1950