loop logic
reistance reading tweaking