update sensor file