This tiny pice of code was as useful as swiss army knife.
To calibrate the sensor we interface them on arduino or any other microcontroller. That microcontroller samples data and writes on serial. And then we connect them with PC or Raspberry pi and log the data in files. When we have data of several days, this is the party time.
This small swiss army knife . . . every thing can't be put into words let's leave a few for real experience.