A microfluidic device includes a first microfluidic channel, a second microfluidic channel, a membrane having a plurality of excitable cells, and at least two electrodes. The membrane separates the first microfluidic channel and the second microfluidic channel. The at least two electrodes are in electrical communication with the membrane and configured to detect an electrical output of the excitable cells.