How Nanotubes can monitor environmental conditions: