Smart device curbs virus spread