For complete details go to the website and click on: 6. Zero Municipal Water Toilet https://sites.google.com/site/nodemcu12e/#zero
Complete Code is here: https://sites.google.com/site/zerowatercode/
Most of your water usage does not have to be drinkable water. To save money on water and sewer costs use non-potable water in your toilet.