Cellulose-based sensor