Consolidated all sensor code