Text this: A Novel Method for Diagnosing Heart Diseases Based on Internet of Things