It looks correct but depending on the Arduino that you are using then you may want to reconsider the use of pin 13 as it is used for the built in LED on some boards
Thanks for your hint! I will check the pin 13.
I use the ardunoUNO with an Adafruit Datalogging shield. My code works but when I add the 2 lines; digitalWrite(EN, LOW) and digitalWrite(EN, HIGH) to switch on and off the mux it gets crazy
The problem is the SD card which on the adafruit datalogging shield uses the digital pin 13 for the SPI communication (ICSP SCK - SPI clock)... Thanks for your help!