Displacement measurement is one of the most used engineering measurements wherever an object motion is involved. Several other measurements, such as position, velocity, acceleration can be calculated based on measuring the displacement data from a transducer that is connected to the object in motion. The displacement measurement transducers could be developed based on resistive, capacitive, inductive properties of the sensor. Others are based on the properties of a medium wherein a wave propagates, such as a sound or electromagnetic waves, i.e. radar, laser, as well as acoustic waves. Here, we introduce a resistive measurement by using a sliding potentiometer that is interfaced to the computer with an Arduino Uno board. We will control the board through python by using the pyfirmata library as we did in Lab 1. ultrasonic technique to measure distance, plot it in real time, and save data for later statistical analysis with Python.