added tape sensing code. Currently untested on hardware