Add hardware sensor interface code.