Copied over sensor code etc.

…and tried to make it compatible with the new ecosystem class.