Temporarily commented out the sequence number and ack/nack features of the code...but it is now properly reading and responding to the current environment data