@Lucas_Vieira Yes, just change the last line of the method values() to:
return t, p, h
I never had sent values directly to cayenne, only through TTN. Which cayenne LPP module are you using?
Edit: In my tests, the value for humidity was the one with the largest error, but still not 0. Are you sure that you have a BME280 device and not an BMP280? If you look at the package, there are two lines of letters
BME280:
xxx
Ux
BMP280:
xxx
Kx
The difference is U vs. K