Okok,based on the code I posted earlier with the said libraries will the code work?
Yes. Whether it does what you want, or not, is a different question.
Only you have the hardware, so only you can answer the new question.
i need some one to verify it first?
Why? You can verify it yourself.