How to automatically stop the steam generator from entering water