The opacity mask input wants a single value from 0-1, the first input of the texture sample is a group of 3 values which represent red, green, and blue.
Typically you make a black and white layer that you put in the alpha channel of your texture. So the bottom output on the texture sample would go into the opacity mask input.