sensor code updated with integrate (still broken)