Firmware for robotics snake that manages movement and sensor data