Just a quickie. Here’s a comprehensive tutorial for connecting an Arduino to your Pi using the I2C protocol. Both sides of the communication is done using C, but it’s pretty easy to understand even if all you’ve ever used is Python. Take a look here.