Abstract. By shaping species interactions, adaptive phenotypic plasticity can profoundly influence ecosystems. Predicting such outcomes has proven difficult, however, owing in part to the dependence of plasticity on the environmental context. Of particular relevance are environmental factors that affect sensory performance in organisms in ways that alter the tradeoffs associated with adaptive phenotypic responses. We explored the influence of turbidity, which simultaneously and differentially affects the sensory performance of consumers at multiple trophic levels, on the indirect effect of a top predator (piscivorous fish) on a basal prey resource (zooplankton) that is mediated through changes in the plastic foraging behavior of an intermediate consumer (zooplanktivorous fish). We first generated theoretical predictions of the adaptive foraging response of a zooplanktivore across wide gradients of turbidity and predation risk by a piscivore. Our model predicted that predation risk can change the negative relationship between intermediate consumer foraging and turbidity into a humped-shaped (unimodal) one in which foraging is low in both clear and highly turbid conditions due to foraging-related risk and visual constraints, respectively. Consequently, the positive trait-mediated indirect effect (TMIE) of the top predator on the basal resource is predicted to peak at low turbidity and decline thereafter until it reaches an asymptote of zero at intermediate turbidity levels (when foraging equals that which is predicted when the top predator is absent). We used field observations and a laboratory experiment to test our model predictions. In support, we found humped-shaped relationships between planktivory and turbidity for several zooplanktivorous fishes from diverse freshwater ecosystems with predation risk. Further, our experiment demonstrated that predation risk reduced zooplanktivory by yellow perch (Perca flavescens) at a low turbidity, but had no effect on consumption at an intermediate turbidity. Together, our theoretical and empirical findings show how the environmental context can govern the strength of TMIEs by influencing consumer sensory performance and how these effects can become realized in nature over wide environmental gradients. Additionally, our hump-shaped foraging curve represents an important departure from the conventional view of turbidity's effect on planktivorous fishes, thus potentially requiring a reconceptualization of turbidity's impact on aquatic food-web interactions.