For the full tutorial visit https://www.hackster.io/circuito-io-team/diy-nespresso-capsule-detector-d441f9 Instructions how to use the code.
- visit this link to circuito.io https://www.circuito.io/app?components=11113,12829,9395,9442,9590
- Download the test code
- Check that the circuit is working
- Replace the code in the firmware.ino tab, with the code found here.
- Make sure to leave the pin and library definitions from the original code.