how to use a digital tachometer with an arduino

If you're using an existing tacho sensor then you need to know how to get an output from that sensor. Devices sold as self-contained tacho sensors+displays may not provide an accessible output. Depending what sort of fan you're referring to, there may be ways for you to sense its speed without using a commercial tacho sensor.