Temperature Control Using Arduino UNO

i want to conditionally switch on and off the configuration given in the image using arduino uno. Is it possible ?
if not that what can i do to make it work ?