added battery tempearture code