Y is this happening?

How many terminations does your LM35 and your potentiometer have (3 each?) so how about a wiring diagram showing where all 6 terminals are actually connected. You might then get some sensible responses to your rather vague question.