This article is for a hands on lab in IoT I am running. You will find full documentation at the provided link. Also, you may run into a scenario in which the MCP 3008 code does not work. If this is the case, you are likely using an older version of the nugget package which contains it or the new version has not been pushed yet. You can find the code for the MCP 3008 below.
Here is the link: https://onedrive.live.com/redir?resid=BA8DC4B28555902A!3406&authkey=!AGawE2hfolHvC8s&ithint=file%2cpdf