In the present work, a highly sensitive optical pressure sensor based on one dimensional ternary Dodecanacci photonic crystal is proposed. The reported device is a pressure tunable 1D ternary photonic crystal using Dodecanacci sequence with graded layer thickness which depends on the law: \(y = \alpha x^{\beta }\) where α, β are chosen as the modulation parameters. The materials used are Silicon, Titanium Dioxide and Silicon Dioxide. The appeared resonant peak within the photonic band gap is highly affected by the external hydrostatic pressure. The transmission spectra reflect that the localized peak is highly blue shifted because of pressure enhancement. The key factor is that the dielectric properties of all three materials used are drastically changed by the photo elastic constants. The sensitivity of the device rises exponentially with the raise of α deformation parameter. The optimized values of the α and β parameters are 10–6 and \(\beta = \, 8.10^{ - 6}\) , respectively. The ultimate sensitivity achieved due to modulation parameter and pressure tenability is 19.40 nm/GPa. The proposed novel optical pressure sensor will be useful in various areas such that multichannel mirrors, filters, biosensing, aerospace and gas sensing. The proposal may be also potential applications for optical, photonic devices and optical communication system.