added code n diagram for arduino interfacing