Device for controlling heating element power