improved direct mount smart cylinder that does not use proximity switches may be used with an oil well pump including sucker rod pumping as a result this embodiment does not require the use of a pedestal though one may still be used if warranted a linear displacement transducer may be installed inside the direct mount smart cylinder in order to measure the linear displacement of the rod of the oil well pump the direct mount smart cylinder is able to determine the position of the rod without the use of proximity switches a hall effects linear displacement transducer may be used the direct mount smart cylinder embodiment offers several benefits it minimizes the possible points of oil leaks because a stuffing box is no longer needed the height of the oil well pump may be reduced by half when a direct mount smart cylinder is implemented the connection to the well is improved because no guy wires are used with the direct mount smart cylinder the direct mount smart cylinder provides the position through the stroke instead of only at the location of the proximity switches because only one cable runs to the linear displacement sensor instead of multiple proximity sensors the assembly of the oil well pump is easier and is safer because there are fewer loose electronics the stroke length may be changed through the control system human machine interface without having to move proximity sensors there are fewer or no moving parts in sight on the wellhead the linear displacement transducer is a no wear item the direct.