This particular one is running on an Arduino Duemilanove, but the sensor and gateway are both using the same library version (1.5.1) so that should be all good, no?
Great that you got it working. Thanks for reporting back.
If you don't already know, ctrl+t (or cmd+t) on the Arduino ide auto-indents the code. That can often make it easer to spot wrong brackets.