Opensource DIY clothes dryer

I would think the single most efficient control algorithm would be to use an internal humidity sensor to tell the controller that the cloths are dry enough now and to cut the heat source (gas or electric) and start the tumble cooling cycle. I believe that there are dryers that have that control option available all ready?