working version with side sensors only and std::map