Car battery monitor

My programming skills are not brilliant is there an easier way of doing this?