Text this: Modeling of a carbon nanotube sensing device