This is the arduino code by using DMProcessor