I remember reading a book about fuzzy logic and how it is used in devices such as washing machines. I have not yet found a concrete example of this in the code. Do you know anything?
I recommend the Fuzzy Systems Reference, Earl Cox. Although I did not use the attached source code, the book explains both the use of fuzzy logic and programming mechanics. Several examples of real solutions are presented.