Help me to convert this fuzzy rules into Arduino IDE base on code i found on web

Hello, do yourself a favour and please read How to get the best out of this forum and modify your post accordingly (including code tags and necessary documentation for your ask).