A nonuniform temperature field can deteriorate the performance of sensors, especially those working in the field, such as an optical sensor for oil-tank ground settlement (GS) monitoring. In this case, the GS monitoring employs hydraulic-level-based sensors (HLBS), which are uniformly installed along with the oil-tank basement perimeter and are all connected by hydraulic tubes. Then, the cylinder structure of the oil tank itself can create a strong temperature difference between the sensors installed in the sunlit front and those in the shadow. Practically, this sunlight-dependent difference can be over 30 °C, by which the thermal expansion of the measuring liquid inside the connecting hydraulic tubes keeps on driving a movement and, thereby, leads to fluctuations in the final result of the oil-tank GS monitoring system. Now, this system can work well at night when the temperature difference becomes negligible. However, temperature uncertainty is generated in the GS sensors due to the large temperature difference between the sensors in the daytime. In this paper, we measured the temperature where the sensor was located. Then, we compared the results of the GS sensors with their corresponding temperatures and fitted them with two separate curves, respectively. After observing the similarity in the tendency of the two curves, we found that there was a qualitative correlative relationship between the change in temperature and the uncertainty in the sensor results. Then, a curve similarity analysis (CSA) principle based on the minimum mean square error (MMSE) criteria was employed to establish an algorithm, by which the temperature uncertainty in the GS sensors was reduced. A practical test proved that the standard deviation was improved by 73.4% by the algorithm. This work could be an example for reducing the temperature uncertainty from in-field sensors through the CSA method.