added the serial reading with flag filters and calibration curve for temp and humidity