Reading of the LM35 sensor connected with a long cable at 5V

Without a schematic I will try t guess and say try swapping the two sensor assemblies and see if the problem stays with the sensor. If so it is the sensor assembly that is giving you trouble, if not it is probably your circuit that it connects to.