I keep an eye on the kettle when it gets close to the boil. Usually the foam starts to increase right then. When it does, I turn the flame way down and leave it there until the foam subsides. Then, when hops are added, I watch it because it tends to foam up again. I never leave a lid on it because that almost always guarantees a boil over.