Steam generator with automatic control