Example code for hotplate