changed lua sensor and motor classes to new spec