also positioned to measure a camshaft position of the camshaft not shown of engine 108 generally the temperature sensor 112 is disposed to measure an engine oil temperature however other engine temperatures such as the water or coolant temperature can also be used as noted the position sensor 116 is generally positioned near the camshaft depending on the engine 108 used the number of position sensors may be different for example there are four position sensors 116 in an engine with four camshafts therefore the embodiment shown in fig1 only illustrates an exemplary system the camshaft temperature compensation system 104 uses an adaptation algorithm module u201c aam u201d 120 to calculate a camshaft difference or camshaft deviation between a known or locked reference camshaft position and the measured camshaft position from the position sensor 116 for example after the engine 108 is started the aam 120 receives a measured camshaft position from the position sensor 116 the aam 120 then determines a first deviation d 1 based on the difference between the known or locked reference camshaft position and the measured camshaft position the first deviation d 1 along with a first temperature t 1 at which the camshaft position was measured by the temperature sensor 112 are sent to and stored in a memory 124 as a first set of camshaft position data similarly a second set of camshaft position data at a second time including a second deviation d 2 and a second temperature t 2 are also determined by the aam 120 and stored in the memory 124 the number of camshaft position data sets collected and stored depends on the accuracy desired and the requirements of.