Raspberry pi projects Add analog inputs to pi 3. In this tutorial, you will learn, how to create a 3-way switch with Pi 3 with analog input. We will be using the ADC (ADS1115) converter and current sensor (Current Sensor ACS712) to detect the device state. GitHub Code: https://github.com/nassir-malik/IOT-Pi3-3Way_Switch_Home_Automation