Arduino sketch for automatic cooker