Electronic design for a thermostat for vital microscopy