Changing sensor in html