Have you read fault codes? When it happens it indeed may be the ect sensor fault but most probably the thermostat is stuck closed and whole thermostat housing should be changed. Otherwise expect head gasket failure. Is cooling system working properly?