SmartPill monitor