Battery sensor now working