need help programming value of proximity sensor to sweep servo arm

I2C is a synchronous serial communication protocol. Nothing analog about it. Here is a Nick Gammon tutorial. Here is a Sparkfun tutorial. Here is a library and example for the sensor.