https://matthewtechub.com/2024/07/12/measuring-length-using-rheostat/