adding node code for serial data example