Hi,
Welcome to the forum.
Please read the post at the start of any forum , entitled "How to use this Forum".
To add code please click this link;
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
A 0.1uF capacitor between A1 and ground will also help with any noise on the battery voltage.
Thanks... Tom...
