Matt Biddulph posted about an Arduino-Second Life proof-of-concept he's made allowing arduino interface into Second Life. This is facilitated by the open-sourcing of the Second Life client, There's no reason it can't work in both directions.
Real-world Control Panel for Second Life, 2 at wwward.expressions.