DMX on Arduino DUE (DMXSimple/DMXSerial)

I've recently worked on a project that used Arduino Dues and the DMX protocol. I needed to use a shield and a logic level converter. This is a script which should assist you in reading the DMX and making sure you're getting the correct values: