add call to get frequency in measurement
use frequency in calculation of humidity
use offset in calculation