To prevent milk from scorching while being heated, place in a pan with a thick base and ensure you take it off the heat just before boiling point.
It is also a good idea to use a tall pan in which the milk reaches about the middle so that the milk has room to rise without boiling over. This offers a longer reaction time so that the milk doesn’t boil over in case we forget it on the heat.