Had the number of sensors wrong, but otherwise it works.