I heard that network sniffing can only be possible when we use a hub. When we use a switch, it processes the data packet and send it only to the destination connection. How this is possible?

Is there any way to find out whether my packets are being sniffed?