how to interpret the serial data

what i need to do?

you need to start thinking for longer than 20 minutes at a time, and working through some of the examples in the IDE.
I believe I've said this before, but it's worth repeating.

(Hint: you haven't written anything called "sendCommand" yet.)