Code for an Arduino based Pet Robot