Terahertz electronics for sensing applications