DHT11 and esp 32

Hello everyone, I have a problem here for my health monitoring system project.
I do not know what this error, can someone help me?

In file included from C:\Users\Admin\Documents\Arduino\libraries\DHTLib\dht.h:18:0,

                 from C:\Users\Admin\Documents\Arduino\libraries\DHTLib\dht.cpp:30:

C:\Users\Admin\Documents\Arduino\libraries\DHTLib\dht.cpp: In member function 'int dht::_readSensor(uint8_t, uint8_t)':

C:\Users\Admin\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\cores\esp32/Arduino.h:106:91: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in initialization

 #define portInputRegister(port)     ((volatile uint32_t*)((port)?GPIO_IN1_REG:GPIO_IN_REG))

                                                                                           ^

C:\Users\Admin\Documents\Arduino\libraries\DHTLib\dht.cpp:116:29: note: in expansion of macro 'portInputRegister'

     volatile uint8_t *PIR = portInputRegister(port);

You can't squeeze four bytes into one

Hi, @magnex
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".

Can you please post your code?
Have you Googled:

esp32 dht11

Thanks.. Tom... :smiley: :+1: :coffee: :australia:

That line offers no hint to the OP?

And your code. How are we supposed to tell you who, what, where to fix when we don't have access to the broken part?

Please.

Please.

Please.

Post your code in code tags?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.