Use a thermistor (PTC) as temperature sensor and an opamp as comparator (with a potentiometer on the non-inverting input as reference voltage). Once temperature exceeds a value set with the potentiometer, the opamp's output will go low and can switch off a relay that is connected to your lamp. Simple circuit, $2 worth of components.