The Universal Adapter uses an algorithm to operate variable-speed equipment with conventional thermostat signals and return air temperature measurements. The algorithm correlates the return air temperatures with the thermostat signals and their active durations to determine the information necessary for modulating variable-speed equipment.