how can i improve my code?

unfortunately, i do need to debounce. the very first sketch i did didn't use debounce and the readings were always about 7X higher than they should of been.

Do you have an oscilloscope? I'm curious as to what the meter is actually outputting.