Integration of molecular semiconductor devices in optical sensors and data transmission systems