The Method _configure_sensor() writes register ctrl_meas (0x74) two times:
-
first in line 91 with value 0x24. The comment says oversampling x4. According to my datasheet value 0x24 is oversamling x1. Oversampling x4 would be 0x6d.
-
second in line 94, overwriting the value in line 91 which probably can be removed. But the register ctrl_meas is only written in the initial configuration, so the ambient values never gets updated. _configure_sensor() should probably be also called after every read.
The humdity oversampling in line 88 also doesn't match the comment.
The Method
_configure_sensor()writes register ctrl_meas (0x74) two times:first in line 91 with value 0x24. The comment says oversampling x4. According to my datasheet value 0x24 is oversamling x1. Oversampling x4 would be 0x6d.
second in line 94, overwriting the value in line 91 which probably can be removed. But the register ctrl_meas is only written in the initial configuration, so the ambient values never gets updated.
_configure_sensor() should probably be also called after every read.The humdity oversampling in line 88 also doesn't match the comment.