These type of sensors often have a warm-up time, often measured in minutes. The datasheet will tell you. If you don't let it warm up you will get poor readings.