Does this have anything to do with Arduino? If so, post some code and some links to the hardware you are talking about.