correct battery percentage calculation in tempsensor depending on used sensor