A wireless intelligent sensor for real time ADL monitoring