Made changes to hooks. Now they refer to sensors by their ID instead of class.