How to read the data from Arduino and perform actions accordingly in MIT APP

This might help you,