magnet
This permanent magnet was selected by its curie temperature. When cooking the rice finished, the bottom heats up due missing water and makes the magnet reach its curie temperature. This causes the release of the lever and the spring pushes back the lever making the heater turn off by turning the switch.